/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2015
 */

package com.environment_pro.monitor.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.environment_pro.monitor.util.StaticUtil;

/**
 * @author yangfeng 
 * @version 1.0
 * @since 1.0
 */


public class TbSystemDict implements java.io.Serializable{

	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "TbSystemDict";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_DICT_NAME = "字典名称";
	public static final String ALIAS_DICT_CODE = "字典编码";
	public static final String ALIAS_PRE_DICT_CODE = "父CODE";
	public static final String ALIAS_REMARK = "备注";
	
	
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	private java.lang.Integer id;

	private java.lang.String dictName;

	private java.lang.String dictCode;

	private java.lang.String preDictCode;

	private java.lang.String remark;
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private  java.util.Date addTime;

	//columns END

	//date String

	public TbSystemDict(){
	}

	public TbSystemDict(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setDictName(java.lang.String value) {
		this.dictName = value;
	}
	
	public java.lang.String getDictName() {
		return this.dictName;
	}
	public void setDictCode(java.lang.String value) {
		this.dictCode = value;
	}
	
	public java.lang.String getDictCode() {
		return this.dictCode;
	}
	public void setPreDictCode(java.lang.String value) {
		this.preDictCode = value;
	}
	
	public java.lang.String getPreDictCode() {
		return this.preDictCode;
	}
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setAddTime(java.util.Date value) {
		this.addTime = value;
	}
	
	public java.util.Date getAddTime() {
		return this.addTime;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("DictName",getDictName())
			.append("DictCode",getDictCode())
			.append("PreDictCode",getPreDictCode())
			.append("Remark",getRemark())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof TbSystemDict == false) return false;
		if(this == obj) return true;
		TbSystemDict other = (TbSystemDict)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

